package com.tm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tm.dto.EmployeeDTO;
import com.tm.entity.EmployeeEntity;
import com.tm.entity.EmployeeEntity;
import com.tm.mapper.EmployeeMapper;
import com.tm.mapper.EmployeeMapper;
import com.tm.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author huangp
 * @create 2023-04-05 9:39
 */
@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, EmployeeEntity> implements EmployeeService {


    @Autowired
    private EmployeeMapper employeeMapper;



    @Override
    public Boolean addEmployee(EmployeeEntity employeeEntity) {
        return employeeMapper.insert(employeeEntity) > 0;
    }


}
